package szad.org.view;

import javax.swing.JFrame;

import szad.org.model.Dao;

public class MainFrame extends JFrame {

	private static final long serialVersionUID = 1L;
	private MainPanel mainPanel;
	
	public MainFrame(Dao dao) {
	    mainPanel = new MainPanel(dao);
		this.setTitle(szad.org.container.ConstantTexts.frameTitle);
		this.setSize(1200, 600);
		this.add(mainPanel);
	}
	
	public void rePaint() {
		mainPanel.rePaint();
	}
	
	public MainPanel getMainPanel() {
		return mainPanel;
	}
}
